import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
// 企业信息 企业用车 租赁合同 账单管理
import enterpriseinfo from './modules/enterprise/info';
import enterprisecar from './modules/enterprise/car';
import enterprisecontract from './modules/enterprise/contract';
import enterprisebill from './modules/enterprise/bill';

import personalCar from './modules/personal/personalCar'
// 表单文件上传
import fileupload from './modules/form/fileupload';
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user,
    personalCar,
    enterpriseinfo,
    enterprisecar,
    enterprisecontract,
    enterprisebill,
    fileupload
  },
  getters
})

export default store
